#!/bin/bash

function build_python()
{
	./configure --prefix=/usr/local/python3 \
		--with-openssl=/usr/local/openssl \
		--enable-optimizations \
		--enable-shared || exit 1

	make -j4 || exit 1
	make install
}

function config_python()
{
	ln -s /usr/local/python3/bin/python3 /usr/bin/python3
	ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
}

build_python;

config_python;


